﻿@model Tau.ViewModels.PublicProductSearch

@using (Html.BeginForm("Search", "Product", FormMethod.Post, new { id = "productSearch" }))
{
    <div style="width:100%">
        Search @Html.DropDownListFor(model => model.SelectedCategoryId, new SelectList(Model.Categories, "CategoryId", "CategoryName"), "All Categories") 
        @Html.TextBoxFor(model => model.SearchString, new { style = "width: 400px" })
        <a href="javascript: submitForm();">Go</a>
    </div>
}

<script type="text/javascript" language="javascript">
    function submitForm() {
        $("#productSearch").submit();
    }
</script>